package com.zwb.wallet.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zwb.wallet.mapper.WalletMapper;
import com.zwb.wallet.entity.Wallet;
import com.zwb.wallet.service.WalletService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 头发又黑又长
 * @Date 2023/2/28 21:01
 * @email zwb15083976291@163.com
 */
@Service
public class WalletServiceImpl extends ServiceImpl<WalletMapper, Wallet>
        implements WalletService {

    @Resource
    WalletMapper walletMapper;

    @Override
    public Wallet findBalanceByUserId(Integer userId) {
        return walletMapper.findBalanceByUserId(userId);
    }
}
